package org.platform.processor.diagnose.result.impl;

import org.platform.mo.bussmo.diagnose.test.TestResultContent;
import org.platform.mo.bussmo.diagnose.test.TestResultLink;
import org.platform.processor.diagnose.DiagnoseResultProcessor;
import org.platform.processor.diagnose.result.IDiagnoseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 链路诊断结果解析
 *
 * @author FengJie
 * @date 2018/8/13
 */
@Service
public class LinkDiagnoseResultImpl implements IDiagnoseResult {
    @Autowired
    private DiagnoseResultProcessor resultProcessor;

    @Override
    public String diagnoseResult(String diagnoseId) {
        TestResultContent result = resultProcessor.queryTestDiagnoseResult(diagnoseId);
        List<TestResultLink> linkList = result.getLinkList();
        linkList.forEach(link -> {

        });

        return null;
    }

    /**
     * X 链路诊断
     */
    private void xLink() {

    }
}
